package com.tledu.springboot04.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("role")
public class Role {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String roleName;
    private Integer roleType;
    private Integer status;
    private Integer delState;
    private Date createTime;
    private Date updateTime;


    //关联表字段
    //忽略该字段(单表查询不需要)
    @TableField(exist = false)
    private List<Resources> resList;//资源list


}
